#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>

int main(int argc, char * argv[])
{
	struct passwd * pwdline;

	if(argc < 2)
	{
		printf("err\n");
		exit(1);
	}

	pwdline = getpwuid(atoi(argv[1]));

	printf("%s\n", pwdline->pw_name);
	printf("%s\n", pwdline->pw_passwd);

	exit(0);
}
